<?php
/**
 * @copyright   七月
 * @license     Licensed (http://www.apache.org/licenses/LICENSE-2.0).
 * @author      July<july491@163.com>
 * 登录验证
 */
namespace app\admin\validate;
use think\Validate;


class Login extends Validate
{
   protected $rule = [
    'username' => 'require',
    'password' => 'require',
   ];
   protected $message = [
    'username.require' => '用户名不能为空',
    'password.require' => '密码不能为空'
   ];
    protected $scene = [
        'login'    => ['username','password'],
        'regist'   => ['username','password','email'],
        'add'      => ['username','password','group_id','about'],
        'edit'     => ['id','username','group_id','about'],
        'password' => ['password','repassword','about'],
    ];
}
